package com.demoo.zjsu.util.javamail;

import java.util.ResourceBundle;

/**
 * Created by jshjsh on 2016/8/13.
 */
public class Target {

    private String subject;

    private String text;

    private static final String setFrom;

    private static final String setTo;

    static {
        ResourceBundle bundle = ResourceBundle.getBundle("email");
        setFrom = bundle.getString("username");
        setTo = bundle.getString("setTo");
    }

    public Target(String subject, String text) {
        this.subject = subject;
        this.text = text;
    }

    public static String getSetFrom() {
        return setFrom;
    }

    public static String getSetTo() {
        return setTo;
    }

    public String getSubject() {
        return subject;
    }

    public void setSubject(String subject) {
        this.subject = subject;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
